<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo $view->contest['name']; ?></title>
        <script type="text/javascript" src="../libs/js/jquery.min.js"></script>
        <script type="text/javascript" src="../libs/js/jquery.blockUI.js"></script>
        <script type="text/javascript">
            jQuery.noConflict();
        </script>
        <script type="text/javascript" src="<?php echo $view->config['template_url'];?>assets/js/contest.js"></script>
        <script type="text/javascript" src="<?php echo $view->config['template_url'];?>html/js/lightbox.js"></script>

        <link rel="stylesheet" href="<?php echo $view->config['template_url'];?>html/css/lightbox.css"  type="text/css" />
        <link type="text/css" rel="stylesheet" href="../libs/lightface/Assets/LightFace.css" />

        <link type="text/css" rel="stylesheet" href="<?php echo $view->config['template_url'];?>assets/css/style.css" />

        <script type="text/javascript" src="../libs/js/mootools-1.3.js"></script>

        <script type="text/javascript" src="../libs/lightface/tests/mootools-more-drag.js"></script>
        <script type="text/javascript" src="../libs/lightface/Source/LightFace.js"></script>
        <script type="text/javascript" src="../libs/lightface/Source/LightFace.Request.js"></script>
        <script type="text/javascript" src="../libs/lightface/Source/LightFace.Static.js"></script>
        <script type="text/javascript" src="../libs/lightface/Source/LightFace.IFrame.js"></script>
        <script type="text/javascript" src="../libs/lightface/Source/LightFace.Image.js"></script>

        <!-- start loading private library -->
        <script type="text/javascript" src="<?php echo $view->config['template_url'];?>assets/js/facebooktab.js"></script>

        <!-- for friend selectors -->
        <link rel="stylesheet" href="../libs/js/fbfriendselector/jquery.facebook.multifriend.select.css" />

        <style type="text/css">
            body {
                /*width:810px;*/
                padding:0px;
                margin:0px;
                /*overflow:hidden;*/
                font-family:Arial, Helvetica, sans-serif;
            }
            .headers {
                border: 0px solid #000000;
                color: #FFFFFF;
                float: left;
                font-size: 23px;
                font-weight: 600;
                height: 37px;
                margin: 12px 30px 0;
                padding-top: 3px;
                text-align: center;
                text-shadow: 2px 2px #000000;
                width: 137px;
                cursor:pointer;

            }
            .pages:hover{
                background-color:#FFFFFF;
                color:#b41b20;
            }
            .photos{
                float: left;
                background-image:url(<?php echo $view->config['template_url'];?>html/images/frame.png);
                width:170px;
                height:209px;
                margin: 10px 10px 0;
                text-align:center;
                background-repeat:no-repeat;
            }
            .images{
                margin-top:20px;
            }
            .voteimages{
                margin-top:20px;
            }
            .pages{

                text-align:center;
                color:#FFFFFF;
                font-weight:600;
                font-size:14px;
                font-family:Arial, Helvetica, sans-serif;
                background-repeat:no-repeat;
                cursor:pointer;
                float:left;background-image:url(<?php echo $view->config['template_url'];?>html/images/pagebg.png);width:21px;height:22px;margin:10px 0 0 5px;
            }


            .top_bg{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/top_bg.png) top left no-repeat;}
            .bot_bg{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bot_bg.png) bottom left no-repeat; padding-bottom:40px;}
            .mid_bg{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/mid_bg.png) top left repeat-y;}
            .bg_img{ border:6px solid #000000; width:708px;}
            .bg_img img{ text-align:center; width:708px; height:300px; overflow:hidden;}
            .bg_img_small{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bg_img.png) top left no-repeat; width:159px; height:143px; margin-left:16px; float:left; position:relative; margin-bottom:30px; text-align:center; padding-top:4px;}
            .bg_img_small .img1{ width:151px; height:98px; overflow:hidden;}
            .bg_content{ background:#2b2b2b; border: 3px solid #000; width:714px;}
            ul.menu{ list-style:none; margin-left:0px; padding-left:0px; padding-top:20px; padding-left:20px;}
            ul.menu li{ margin-right:3px; float:left; width:167px;}
            ul.menu li a{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bg_menu.png) top left no-repeat; display:block; text-align:center; padding:12px 0px 12px 0px; font-size:14px; font-weight:bold; color:#fff;}
            ul.menu li a:hover{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bg_menu_over.png) top left no-repeat; text-decoration:none; color:#000000;}
            ul.menu li a.curr1{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bg_menu_over.png) top left no-repeat; text-decoration:none; color:#000000;}
            .p20t{ padding-top:20px;}
            .black_bg1{ text-align:center; padding:3px 5px 3px 5px; background:url(<?php echo $view->config['template_url'];?>assets/img/760/black_bg.png) repeat; color:#fff; font-size:10px; position:absolute; bottom:45px; left:3px; width:142px;}
            .black_bg2{ text-align:center; padding:5px 5px 5px 5px; background:url(<?php echo $view->config['template_url'];?>assets/img/760/black_bg.png) repeat; color:#fff; font-size:15px; position:absolute; top:3px; right:3px;}
            ul.pagin{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bg_page.png) top left no-repeat; width:130px; height:24px; margin-left:0px; padding-left:13px; padding-top:7px; float:right;}
            ul.pagin li{ margin-right:2px; width:20px; text-align:center; float:left; padding-left:0px; margin-left:0px;}
            ul.pagin li a{font-size:12px; font-weight:bold; color:#FFFFFF; text-decoration:none; width:20px;}
            ul.pagin li a:hover{color:#fdc029;}
            ul.pagin li a.curr2{color:#fdc029;}
            .bg_social{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bg_social.png) top left no-repeat; width:245px; height:49px; float:left; padding:13px 0px 0px 15px;}
            .po{ position:relative;}
            .bg_overlay{ background:url(<?php echo $view->config['template_url'];?>assets/img/760/bg_overlay.png) top left repeat; width:690px; padding:10px 10px 10px 10px; position:absolute; bottom:0px; left:0px; color:#fdc029; font-size:16px;}

            .lightbox-normal-text-size{
                font-size: 11px;
            }
            .bg_img_lightbox{
                background: url("images/bg_small_img.png") no-repeat scroll left top transparent;
                height: 65px;
                padding-top: 3px;
                text-align: center;
                width: 65px;
            }

            .headers a{
                color:white !important;
                text-decoration: none !important;
            }
            .headers a:hover{
/*                background-color:#FFFFFF !important;
                color:#b41b20 !important;*/
                text-shadow:none !important;
                text-decoration: underline !important;
            }
            .pages a{
                color:white;
                text-decoration: none;
            }
            .pages a:hover{
                background-color:#FFFFFF;
                color:#b41b20;
            }
            .index_topout{
                float:left;clear:both;width:810px;min-height:202px;background-color:#e7e7e7;
            }
            .index_inouttop{
                float:left;clear:both;width:100%;
            }
            .index_inintop{
                float:left;background-image:url(<?php echo $view->config['template_url']; ?>html/images/register.png);width:454px;height:199px;margin:0px 0px 0px 20px;
            }
            .index_inintitle{
                width:100%;text-align:center;font-size:18px;font-weight:600;margin:10px 0 0 0px;
            }
            .index_inintitle2{
                width:100%;font-size:15px;font-weight:600;color:#393939;margin:8px 0 0 36px;
            }
            .index_formtextarea{
                margin:5px 0 0 32px;width:386px;height:71px;background:none;border:none;color:#FFFFFF;
            }
            .index_formrightpanel{
                float:left;background-image:url(<?php echo $view->config['template_url']; ?>html/images/socialbuttons.png);width:315px;height:198px;margin:0px 0px 0px 0px	
            }
            .index_formprofilename{
                clear: both;
                color: #000000;
                float: left;
                font-size: 15px;
                font-weight: 600;
                margin-top: -27px;
                overflow: hidden;
                position: absolute;
                width: 159px;
            }
            .index_formprofilename a{
                color:black;font-weight: bolder;text-decoration: none;
            }            
        </style>

        <link media="screen" rel="stylesheet" href="<?php echo $view->config['template_url'];?>html/colorbox.css" />
        <?php if($view->action != "vote"){?>
        <link media="screen" rel="stylesheet" href="http://app.socialmediatoolbox.no/wp-content/themes/twentyeleven/editor-style.css" />        
        <?php } ?>
        <script>
            jQuery('.voteimages').live("mouseover",function(){
                jQuery('.voteimages',this).attr("src","<?php echo $view->config['template_url'];?>html/images/onhovervote.png");
            } )
        </script>

        <script src="<?php echo $view->config['template_url'];?>html/js/jquery.colorbox.js"></script>

        <script type="text/javascript">
            function updateiLightbox(){
                jQuery(".iimage").colorbox({iframe:false});
            }
            jQuery(document).ready(function(){
                //Examples of how to assign the ColorBox event to elements

                jQuery(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
                jQuery(".iimage").colorbox({iframe:false});
                //Example of preserving a JavaScript event for inline calls.
                jQuery("#click").click(function(){
                    jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
                    return false;
                });
            });
        </script>
    </head>
        <body>
            <script src="http://connect.facebook.net/en_US/all.js"></script>
        <div id="fb-root"></div>
        <script type="text/javascript" charset="utf-8">
            FB.init({
                appId  : '<?php echo $view->config['facebook_app_id']; ?>',
                status : true, // check login status
                cookie : true, // enable cookies to allow the server to access the session
                xfbml  : true, // parse XFBML
                oauth  : true // enable OAuth 2.0
            });
        </script>

        <!-- set up the javascript variables -->

        <script type="text/javascript">
            <?php if ($view->isConnectedFacebook) { ?>
                    contestapp.isConnectedFacebook = true;
            <?php } ?>
            // set up for lightbox
            facebooktab.lightboxPaddingTop = 180;
            facebooktab.lightboxAutoAdjust = false;
            contestapp.tostitle = "<?php echo $view->contest['tos_link_text']; ?>";
            contestapp.isEndOfContest = "<?php echo $view->isEndOfContest; ?>";
            <?php if(time() < mktime(0, 0, 1, 1, 20, 2013) || time() > mktime(0, 0, 1, 2, 29, 2013)){?>
                contestapp.isDenyVote = true;
            <?php } ?>
        </script>

            <div style="clear:both;width:810px;height:100%;margin:0 auto;">
                <div style="float:left;clear:both;width:810px;height:131px;background-image:url(<?php echo $view->config['template_url'];?>html/images/italianwedding_01.jpg);">
                    <div style="float:left;clear:both;width:100%">                        
                        <?php if($view->contest['show_contribution_tab'] == "on") { ?>
                        <div class="headers">
                            <a href="?action=vote" <?php if($view->action == "vote"){?>class="curr1"<?php } ?>><?php echo $view->contest['contribution_tab_label']; ?></a>
                        </div>
                        <?php } ?>
                        
                        <?php if($view->contest['show_signup_tab'] == "on") { ?>
                        <div class="headers">
                            <a href="?action=index" <?php if($view->action == "index"){?>class="curr1"<?php } ?>><?php echo $view->contest['signup_tab_lable']; ?></a>
                        </div>
                        <?php } ?>
                        
                        <?php if($view->contest['show_about_tab'] == "on") { ?>
                        <div class="headers">
                            <a href="?action=about" <?php if($view->action == "about"){?>class="curr1"<?php } ?>><?php echo $view->contest['tab_lable']; ?></a>
                        </div>
                        <?php } ?>
                        
                        <?php if($view->contest['show_external_tab'] == "on") { ?>
                        <div class="headers">
                            <a target="_blank" href="<?php echo $view->contest['external_tab_url'];?>"><?php echo $view->contest['external_tab_text']; ?></a>
                        </div>
                        <?php } ?>
                    </div>                   

                </div>
                <div style="float:left;clear:both;width:810px;height:171px;background-image:url(<?php echo $view->config['template_url'];?>html/images/italianwedding_02.jpg);">
                   <?php if($view->contest['overlay_text'] != "") { ?>
                    <div style="height: 40px; background-image: url(../templates/downhilltravel/html/images/bgbanner.png); font-size: 30px; padding-left: 10px; margin-top: 102px; width: 800px; color: white;">
                        <?php echo $view->contest['overlay_text'];?>
                    </div>
                    <?php } ?>
                </div>


                <!-- main content here -->
                <?php echo $view->view_content; ?>
                <div style="float:right;padding: 10px;margin-top: -5px;font-size: 8pt;color:black;"><a style="color:#000;" href="javascript:contestapp.showTOSWindow();"><?php echo $view->contest['tos_link_text'];?></a></div>               
            </div>
        
        <script type="text/javascript" src="http://apis.google.com/js/plusone.js">
            {lang: 'no'}
        </script>
        <script type="text/javascript" charset="utf-8">
            FB.Canvas.setSize({ width: 810, height: 1800 });
        </script>
        <script type="text/javascript">

            document.id(document.body).addEvent('click',facebooktab.likecloser);

        </script>
        <br/>
        
        </body>
</html>